﻿<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="AdClick.aspx.cs"
    Inherits="ETongJin.YM.Web.Admin.AdClick" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("userid");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="tableBorder" border="0" cellpadding="0" cellspacing="1">
        <tr>
            <th colspan="8" class="ym12_bti">
                广告点击记录
            </th>
        </tr>
        <tr>
            <th colspan="8">
                <table width="100%" border="0">
                    <tr>
                        <td>
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="80" style="color: #990000;">
                                        筛选：
                                    </td>
                                    <td width="90">
                                        <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" onchange="if(this.value=='-2') return false;"
                                            OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                                            <asp:ListItem Text="按搜索类型" Value="-2" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="行业搜索" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="聚合搜索" Value="1"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td width="90">
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" align="right" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="80" style="color: #990000; text-align: right;">
                                        搜索：
                                    </td>
                                    <td width="80">
                                        <asp:DropDownList ID="ddlSearchType" runat="server">
                                            <asp:ListItem Text="关键词" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="广告主ID" Value="1"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td width="90px">
                                        <input style="display: none" />
                                        <asp:TextBox ID="txtKeyWords" runat="server" Text="关键字" Style="width: 150px; text-align: left"
                                            onfocus="if(this.value=='关键字')this.value='';"></asp:TextBox>
                                    </td>
                                    <td width="60px">
                                        <asp:Button ID="Button4" runat="server" Text=" 提交 " OnClick="Button4_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </th>
        </tr>
        <tr>
            <td width="30" class="td2">
                选中
            </td>
            <td class="td2">
                搜索关键词&nbsp;
            </td>
            <td width="60" class="td2">
                来路
            </td>
            <td width="30" class="td2">
                广告主ID
            </td>
            <td width="70" class="td2">
                点击IP
            </td>
            <td width="70" class="td2">
                点击时间
            </td>
            <td class="td2" width="80">
                搜索类型
            </td>
            <td width="60px" class="td2">
                常规操作
            </td>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <tr bgcolor="#FFFFFF" onmouseover="javascript:this.bgColor='#E3E1D7'" onmouseout="javascript:this.bgColor='#FFFFFF'"
                    style="text-align: center; height: 27">
                    <td>
                        <input name='userid' type='checkbox' value='<%#Eval("id") %>' style="border: none" />
                    </td>
                    <td class="lefttd">
                        <asp:HyperLink ID="HyperLink1" Target="_blank" Text='<%#Eval("word") %>' runat="server"></asp:HyperLink>
                    </td>
                    <td class="lefttd">
                        <%#Eval("add1") %>，
                        <%#Eval("add2")%>
                    </td>
                    <td>
                        <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"Edit.aspx?i="+Eval("userid") %>'
                            runat="server"><%#Eval("userid") %></asp:HyperLink>
                    </td>
                    <td>
                        <%#Eval("IP") %>
                    </td>
                    <td class="lefttd">
                        <%#Eval("addTime") %>
                    </td>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("searchtype") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:LinkButton ID="btnDel" runat="server" OnClick="btnDel_Click" CommandArgument='<%# Eval("id")%>'
                            OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');">删除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <td colspan="8" class="td2" style="text-align: left; height: 30px;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="180">
                            <input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox'
                                style="border: none" />选中本页显示的所有记录
                        </td>
                        <td>
                            &nbsp;&nbsp;<asp:Button ID="Button7" runat="server" Text="批量删除" OnClick="ButtonClick"
                                CommandArgument="2" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');" />&nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <th colspan="8" style="text-align: center;">
                <div id="tnt_pagination">
                    <%= PageStr%></div>
                <div class="ym12_mian_y">
                </div>
            </th>
        </tr>
    </table>
</asp:Content>
